// ----------------- ID Constants --------------------------------------------
#define IddTankRespawnDialog  1230
#define IdcCbHumanRespawnList  1231
#define IdcTankMap 1232
#define IdcBtMatrixInsert 1233

// ---------------- positions constants --------------------------------------
#define ScreenWidth 1.0
#define ScreenHeight 1.0
#define ScreenX 0.0
#define ScreenY 0.0

#define TankMenuX (ScreenWidth * 0.7)
#define TankMenuY ScreenY
#define TankMenuW (ScreenWidth - TankMenuX)
#define TankMenuH ScreenHeight

#define ControlsMargin 0.015

#define cbHumanRespawnListX (TankMenuX + ControlsMargin)//TankMenuMargin //(TankMenuW * 0.1)//(TankMenuW/2)//+ (TankMenuW*0.1)
#define cbHumanRespawnListY (ScreenY + ControlsMargin)//ScreenY //+ (TankMenuW*0.1)
#define cbHumanRespawnListW (TankMenuW-2*ControlsMargin)
#define cbHumanRespawnListH (4 * ControlFontSize)

#define BtMatrixInsertX cbHumanRespawnListX
#define BtMatrixInsertY (cbHumanRespawnListY + cbHumanRespawnListH+ControlsMargin)

#define TankMapX ScreenX
#define TankMapY ScreenY
#define TankMapW TankMenuX
#define TankMapH ScreenHeight

class TankRespawnDialog {
    idd = IddTankRespawnDialog;

    movingEnable = true;
    objects[] = {};

    class controlsBackground {

        class dialogBack : RscBack {
            x = TankMenuX;
            y = TankMenuY;
            w = TankMenuW;
            h = TankMenuH;
        };

    };

    class controls {

        class cbHumanRespawnList : RscListBox {
            idc = IdcCbHumanRespawnList;

            x = cbHumanRespawnListX;
            y = cbHumanRespawnListY;
            w = cbHumanRespawnListW;
            h = cbHumanRespawnListH;
        };

        class TankMap : RscMapControl {
            idc = IdcTankMap;
            x = TankMapX;
            y = TankMapY;
            w = TankMapW;
            h = TankMapH;

        };

         class BtMatrixInsert : RscButton {
            idc = IdcBtMatrixInsert;
            x = BtMatrixInsertX;
            y = BtMatrixInsertY;
            w = cbHumanRespawnListW;
//            h = BtMatrixInsertH;
            
            text = "Inserer dans la Matrice";   

			action = "res=[this] execVM ""TankHumanPlacement.sqf"" ";

        };

    };


};